package com.bailugansan.efficiencyboard.dao;

import com.bailugansan.efficiencyboard.pojo.Board;

import java.util.List;

/**
 * @author BailuGansan
 */
public interface TaskDao {

    /**
     *
     * @param pId
     * @param drawerTitle
     * @param drawerPriority
     * @param drawerDeadLineYear
     * @param drawerDeadLineTime
     * @param drawerTaskDescript
     * @param drawerStartYear
     * @param drawerStartTime
     * @param order
     * @return
     */
    boolean addTask(int pId, String drawerTitle, String drawerPriority, String drawerDeadLineYear, long drawerDeadLineTime, String drawerTaskDescript, String drawerStartYear, long drawerStartTime, int order);
    /**
     *
     * @param pId
     * @param taskId
     * @param drawerTitle
     * @param drawerPriority
     * @param drawerDeadLineYear
     * @param drawerDeadLineTime
     * @param drawerTaskDescript
     * @param drawerStartYear
     * @param drawerStartTime
     * @param order
     * @return
     */
    boolean updateTask(int pId, int taskId, String drawerTitle, String drawerPriority, String drawerDeadLineYear, long drawerDeadLineTime, String drawerTaskDescript, String drawerStartYear, long drawerStartTime, int order);

    /**
     *
     * @param pId
     * @param taskId
     * @return
     */
    boolean deleteTask(int pId, int taskId);


    /**
     *
     * @param drapId
     * @param drapPid
     * @param dropPid
     * @return
     */
    boolean swapTask(int drapId, int drapPid, int dropPid);


    List<Board> getTasks(int poolId);
}
